package com.travel.service;

import com.qianfeng.util.ResultMsg;
import com.travel.entity.TbHome;
import com.travel.entity.TbHomeOrder;
import com.travel.entity.TbUser;

public interface HomeOrderService {
    ResultMsg addOrderClass(TbUser user, TbHome home);

    ResultMsg addOrder(Integer userId, Integer homeId);

    ResultMsg getAll();

    ResultMsg getOneById(Integer homeOrderId);

    ResultMsg getAllByPage(Integer current, Integer size);

    ResultMsg insertOne(TbHomeOrder homeOrder);

    ResultMsg updateOne(TbHomeOrder homeOrder);

    ResultMsg deleteOne(String homeOrderId);

    ResultMsg getByUid(Integer userId);

    ResultMsg homeOrderPay(String homeOrderId);

    ResultMsg getByOid(String homeOrderId);

}
